/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.factory.method;

import com.laihuichuxing.factory.simple.Operation;
import org.springframework.cglib.proxy.Factory;

/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/15 16:15
 * Update Date Time:
 */

public class Main {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        IFactory addFactory = (IFactory)Class.forName("com.laihuichuxing.factory.method.AddFactory").newInstance();

        Operation operation = addFactory.createOperation();
        operation.numberA=233;
        operation.numberB=233;
        System.out.println(operation.result());
    }
}
